package net.hn.hnms.biz.api.plan;


import net.hn.hnms.biz.api.plan.model.CompletionRateVo;
import net.hn.hnms.biz.api.plan.model.ImportantRegionVo;
import net.hn.hnms.biz.api.plan.model.MonthYieldVo;
import net.hn.hnms.biz.api.plan.model.YearYieldVo;
import net.hn.hnms.sys.common.core.constant.ServiceNameConstants;
import net.hn.hnms.sys.common.core.domain.R;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;

/**
 * Author: PanSX
 * Date: 2022/8/5 15:25
 */
@FeignClient(contextId = "RemotePlanInfoService", value = ServiceNameConstants.MANAGEMENT_PLAN_SERVICE,fallback =RemotePlanInfoServiceFallback.class )
public interface RemotePlanInfoService {
    /**
     * 当日值班人员
     * @return
     */
    @GetMapping("/dispatch/currentDuty")
    R<String> currentDuty();
    /**
     * 月产量情况
     * @return
     */
    @GetMapping("/dispatch/month/yieldByMonth")
    R<MonthYieldVo> yieldByMonth();

    /**
     * 年产量情况
     * @return
     */
    @GetMapping("/dispatch/year/yieldByYear")
    R<YearYieldVo> yieldByYear();

    /**
     * 月度计划/完成情况
     * @return
     */
    @GetMapping("/dispatch/month/completionRate")
    R<CompletionRateVo> completionRate();

    /**
     * 重点区域
     * @return
     */
    @GetMapping("/dispatch/important/region")
    R<ImportantRegionVo> region();

    /**
     * 年度计划/完成情况
     * @return
     */
    @GetMapping("/dispatch/year/completionRate")
    R<CompletionRateVo> completionRateByYear();





}
